package com.md.facade;

import com.md.api.InternalApi;
import com.md.application.service.InternalApplicationService;
import com.md.config.Logs;
import com.md.model.system.CommonResult;
import com.md.value.enums.OperationEnum;
import lombok.RequiredArgsConstructor;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author 刘骄阳
 * 2024-07-14 22:16
 */
@RestController
@RequiredArgsConstructor
public class InternalController implements InternalApi {
  private final InternalApplicationService internalApplicationService;

  @Override
  @Logs(title = "初始化项目", operation = OperationEnum.INSERT)
  public CommonResult<Void> init() {
    internalApplicationService.init();
    return CommonResult.success();
  }
}
